package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseAppointOrder", catalog="Id")
public class TcgPurchaseAppointOrder extends BaseEntity<TcgPurchaseAppointOrder> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="OperatorUserId", nameJava="operatorUserId", typeDataBase="varchar")
	private String operatorUserId;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="PreAccount", nameJava="preAccount", typeDataBase="decimal")
	private BigDecimal preAccount;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="StateCancel", nameJava="stateCancel", typeDataBase="tinyint")
	private Integer stateCancel;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseAppointOrder setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchaseAppointOrder setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcgPurchaseAppointOrder setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getOperatorUserId() {
		return operatorUserId;
	}
	public TcgPurchaseAppointOrder setOperatorUserId(String operatorUserId) {
		this.operatorUserId = operatorUserId;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcgPurchaseAppointOrder setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcgPurchaseAppointOrder setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public BigDecimal getPreAccount() {
		return preAccount;
	}
	public TcgPurchaseAppointOrder setPreAccount(BigDecimal preAccount) {
		this.preAccount = preAccount;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TcgPurchaseAppointOrder setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcgPurchaseAppointOrder setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStateCancel() {
		return stateCancel;
	}
	public TcgPurchaseAppointOrder setStateCancel(Integer stateCancel) {
		this.stateCancel = stateCancel;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseAppointOrder setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseAppointOrder setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseAppointOrder setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseAppointOrder tcgPurchaseAppointOrder(
		String bid,
		Long createChangeId,
		String operatorUserId,
		Integer effectStock,
		String vgsbm,
		BigDecimal preAccount,
		String companyVid,
		String remark,
		Integer stateCancel,
		Integer status
			) {
		TcgPurchaseAppointOrder entity = new TcgPurchaseAppointOrder();
		entity.setBid(bid);
		entity.setCreateChangeId(createChangeId);
		entity.setOperatorUserId(operatorUserId);
		entity.setEffectStock(effectStock);
		entity.setVgsbm(vgsbm);
		entity.setPreAccount(preAccount);
		entity.setCompanyVid(companyVid);
		entity.setRemark(remark);
		entity.setStateCancel(stateCancel);
		entity.setStatus(status);
		return entity;
	}
}